<include file="Public:head" />
<js href="__PUBLIC__/js/ckeditor/ckeditor.js" />
<script type="text/javascript">
  $(document).ready(function(){
    CKEDITOR.replace('e_content');
  });
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/event.css" media="all">
<include file="Public:body_header" />
<form action="__SELF__" method="post" enctype="multipart/form-data" id="event_editor">
<!--<input type="hidden" name="id" value="{$event.id}"/>-->
<br/>
<ul>
<li class="item">
  <label for="title">* 名称</label>
  <input type="text" name="title" value="{$event.title}" id=""/>
</li>
<li class="item">
  <label for="loc">* 地点</label>
  <input type="text" name="loc" value="{$event.location}" id=""/>
</li>
<li class="item">
  <label for="type">* 类型</label>
  <select name="type" value="{$event.type}" id="">
  <volist name="Think.lang.EVENT_TYPE" id="vo">
    <option value="{$key}">{$vo}</option>
  </volist>
  </select>
</li>
<li class="item">
  <label for="img">海报</label>
  <input type="file" name="imgfile" value="{$event.img}" id=""/>
  <input type="hidden" name="imgtype" value="poster"/>
  <span for="img" class="tip">图片大小请控制在3MB以内</span>
</li>
<li class="item">
  <label for="content">* 简介</label>
  <textarea name="content" id="e_content" cols="80" rows="10">{$event.content}</textarea>
</li>
<li class="item">
  <label for="start_date">开始时间</label>
  <input type="text" name="start_date" value="{$event.start_date}" id=""/>
  <input type="text" name="start_time" value="{$event.start_time}" id=""/>
  <label for="content" class="tip"></label>
</li>
<li class="item">
  <label for="end">结束时间</label>
  <input type="text" name="end_date" value="{$event.end_date}" id=""/>
  <input type="text" name="end_time" value="{$event.end_time}" id=""/>
</li>
<li class="item">
  <label for="tag">标签</label>
  <input type="text" name="tag" value="{$event.tags}" id=""/>
  <span class="tip">（请使用半角逗号[,]分隔）</span>
</li>
<li class="item">
  <label for="v">活动权限</label>
<if condition="$event.visibility neq EventModel::C('STATE_HIDDEN')">
  <input type="checkbox" name="state" checked="checked" value="1" id=""/>所有人可见
<else />
  <input type="checkbox" name="state" value="1" id=""/>所有人可见
</if>
</li>
</ul>
  <input type="submit" name="submit" class="input" value="提交"/>
</form>
<include file="Public:foot" />